<?php
class financemanagepage extends page{
	public $title;
	public $friends = "";
	public $test = "";
	public $zhiChu =0;
	public $shouRu = 0;
	public $yuE = 0;
	public $sKind ="";
	public $zKind ="";
	public function __construct(){
		parent::__construct();
		$this->title = "财务管理";
		$userNumber  = $_SESSION["userNumber"];
		$this->zhiChu = $this->getZhiCu($userNumber);
		$this->shouRu = $this->getShouRu($userNumber);
		$this->yuE = number_format($this->shouRu-$this->zhiChu,2,".","");//格式化输出
		$this->zhiChu=number_format($this->zhiChu,2,".","");//格式化输出
		$this->shouRu =number_format($this->shouRu,2,".","");//格式化输出
		$this->zKind = $this->getZhiChuKinds($userNumber);
		$this->sKind = $this->getShouRuKinds($userNumber);
	}
	public function getZhiCu($userNumber){
		$dao = new financemanagetdao();
		$zhiChu = $dao->do_getZhiChu($userNumber);
		return $zhiChu;
	}
	public function getShouRu($userNumber){
		$dao = new financemanagetdao();
		$shouRu = $dao->do_getShoRu($userNumber);
		return $shouRu;
	}
	 public function getZhiChuKinds($userNumber){
		$dao = new financemanagetdao();
		$zhichukinds = $dao->do_getZhiChuKinds($userNumber);
		return $zhichukinds;
	}
	public function getShouRuKinds($userNumber){
		$dao = new financemanagetdao();
		$shourukinds = $dao->do_getShouRuKinds($userNumber);
		return $shourukinds;
	}
}

?>
